export default [
    // 页面重定向
    {
        path:"/",
        redirect:"/home"
    },
    // 详情页
    {
        path:"/details",
        name:"details",
        component:()=>import("@/views/Details")
    },
    // 全部商品页面
    {
        name:"goods",
        path:"/goods/:keyword?",
        // 路由懒加载
        component:()=>import("@/views/Goods")
    },
    // 我的收藏
    {
        name:"collection",
        path:"/collection",
        component:()=>import("@/views/Collection")
    },
    // 购物车
    {
        name:"shopCart",
        path:"/shopCart",
        component:()=>import("@/views/shopCart")
    },
    // 我的订单
    {
        name:"myIndent",
        path:"/myIndent",
        component:()=>import("@/views/myIndent")
    },
    // 确认订单
    {
        name:"confirmOrder",
        path:"/confirmOrder",
        component:()=>import("@/views/ConfirmOrder")
    },
    // 首页
    {
        name:"home",
        path:"/home",
        component:()=>import("@/views/Home")
    },
    // 登录
    {
        name:"login",
        path:"/login",
        component:()=>import("@/views/Login")
    },
    // 注册
    {
        name:"register",
        path:"/register",
        component:()=>import("@/views/Register")
    }
]